<?php
  function portfolio_minister_validation($form, &$form_state) {
    chkbadchar($form['title']['#value'],$form['title']['#title'],'title');
    chkbadchar($form['field_portfolio_portfolio']['und'][0]['value']['#value'],$form['field_portfolio_portfolio']['und'][0]['value']['#title'],'field_portfolio_portfolio');
  }